﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000EA3 RID: 3747
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueCommonDialogueOptionResultInfo : IMessage<RogueCommonDialogueOptionResultInfo>, IMessage, IEquatable<RogueCommonDialogueOptionResultInfo>, IDeepCloneable<RogueCommonDialogueOptionResultInfo>, IBufferMessage
	{
		// Token: 0x17002F8D RID: 12173
		// (get) Token: 0x0600A7EC RID: 42988 RVA: 0x001C5C6C File Offset: 0x001C3E6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueCommonDialogueOptionResultInfo> Parser
		{
			get
			{
				return RogueCommonDialogueOptionResultInfo._parser;
			}
		}

		// Token: 0x17002F8E RID: 12174
		// (get) Token: 0x0600A7ED RID: 42989 RVA: 0x001C5C73 File Offset: 0x001C3E73
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueCommonDialogueOptionResultInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002F8F RID: 12175
		// (get) Token: 0x0600A7EE RID: 42990 RVA: 0x001C5C85 File Offset: 0x001C3E85
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueCommonDialogueOptionResultInfo.Descriptor;
			}
		}

		// Token: 0x0600A7EF RID: 42991 RVA: 0x001C5C8C File Offset: 0x001C3E8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDialogueOptionResultInfo()
		{
		}

		// Token: 0x0600A7F0 RID: 42992 RVA: 0x001C5C94 File Offset: 0x001C3E94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDialogueOptionResultInfo(RogueCommonDialogueOptionResultInfo other) : this()
		{
			RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase optionResultInfoCase = other.OptionResultInfoCase;
			if (optionResultInfoCase != RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase.BattleResultInfo)
			{
				if (optionResultInfoCase == RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase.OFOOEMCPEKH)
				{
					this.OFOOEMCPEKH = other.OFOOEMCPEKH.Clone();
				}
			}
			else
			{
				this.BattleResultInfo = other.BattleResultInfo.Clone();
			}
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A7F1 RID: 42993 RVA: 0x001C5CEE File Offset: 0x001C3EEE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDialogueOptionResultInfo Clone()
		{
			return new RogueCommonDialogueOptionResultInfo(this);
		}

		// Token: 0x17002F90 RID: 12176
		// (get) Token: 0x0600A7F2 RID: 42994 RVA: 0x001C5CF6 File Offset: 0x001C3EF6
		// (set) Token: 0x0600A7F3 RID: 42995 RVA: 0x001C5D0E File Offset: 0x001C3F0E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDialogueOptionBattleResultInfo BattleResultInfo
		{
			get
			{
				if (this.optionResultInfoCase_ != RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase.BattleResultInfo)
				{
					return null;
				}
				return (RogueCommonDialogueOptionBattleResultInfo)this.optionResultInfo_;
			}
			set
			{
				this.optionResultInfo_ = value;
				this.optionResultInfoCase_ = ((value == null) ? RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase.None : RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase.BattleResultInfo);
			}
		}

		// Token: 0x17002F91 RID: 12177
		// (get) Token: 0x0600A7F4 RID: 42996 RVA: 0x001C5D24 File Offset: 0x001C3F24
		// (set) Token: 0x0600A7F5 RID: 42997 RVA: 0x001C5D3D File Offset: 0x001C3F3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GBIJFBKMOHL OFOOEMCPEKH
		{
			get
			{
				if (this.optionResultInfoCase_ != RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase.OFOOEMCPEKH)
				{
					return null;
				}
				return (GBIJFBKMOHL)this.optionResultInfo_;
			}
			set
			{
				this.optionResultInfo_ = value;
				this.optionResultInfoCase_ = ((value == null) ? RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase.None : RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase.OFOOEMCPEKH);
			}
		}

		// Token: 0x17002F92 RID: 12178
		// (get) Token: 0x0600A7F6 RID: 42998 RVA: 0x001C5D54 File Offset: 0x001C3F54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase OptionResultInfoCase
		{
			get
			{
				return this.optionResultInfoCase_;
			}
		}

		// Token: 0x0600A7F7 RID: 42999 RVA: 0x001C5D5C File Offset: 0x001C3F5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void ClearOptionResultInfo()
		{
			this.optionResultInfoCase_ = RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase.None;
			this.optionResultInfo_ = null;
		}

		// Token: 0x0600A7F8 RID: 43000 RVA: 0x001C5D6C File Offset: 0x001C3F6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueCommonDialogueOptionResultInfo);
		}

		// Token: 0x0600A7F9 RID: 43001 RVA: 0x001C5D7C File Offset: 0x001C3F7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueCommonDialogueOptionResultInfo other)
		{
			return other != null && (other == this || (object.Equals(this.BattleResultInfo, other.BattleResultInfo) && object.Equals(this.OFOOEMCPEKH, other.OFOOEMCPEKH) && this.OptionResultInfoCase == other.OptionResultInfoCase && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A7FA RID: 43002 RVA: 0x001C5DE0 File Offset: 0x001C3FE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.optionResultInfoCase_ == RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase.BattleResultInfo)
			{
				num ^= this.BattleResultInfo.GetHashCode();
			}
			if (this.optionResultInfoCase_ == RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase.OFOOEMCPEKH)
			{
				num ^= this.OFOOEMCPEKH.GetHashCode();
			}
			num ^= (int)this.optionResultInfoCase_;
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A7FB RID: 43003 RVA: 0x001C5E3E File Offset: 0x001C403E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A7FC RID: 43004 RVA: 0x001C5E46 File Offset: 0x001C4046
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A7FD RID: 43005 RVA: 0x001C5E50 File Offset: 0x001C4050
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.optionResultInfoCase_ == RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase.BattleResultInfo)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.BattleResultInfo);
			}
			if (this.optionResultInfoCase_ == RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase.OFOOEMCPEKH)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.OFOOEMCPEKH);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A7FE RID: 43006 RVA: 0x001C5EAC File Offset: 0x001C40AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.optionResultInfoCase_ == RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase.BattleResultInfo)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleResultInfo);
			}
			if (this.optionResultInfoCase_ == RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase.OFOOEMCPEKH)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.OFOOEMCPEKH);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A7FF RID: 43007 RVA: 0x001C5F08 File Offset: 0x001C4108
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueCommonDialogueOptionResultInfo other)
		{
			if (other == null)
			{
				return;
			}
			RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase optionResultInfoCase = other.OptionResultInfoCase;
			if (optionResultInfoCase != RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase.BattleResultInfo)
			{
				if (optionResultInfoCase == RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase.OFOOEMCPEKH)
				{
					if (this.OFOOEMCPEKH == null)
					{
						this.OFOOEMCPEKH = new GBIJFBKMOHL();
					}
					this.OFOOEMCPEKH.MergeFrom(other.OFOOEMCPEKH);
				}
			}
			else
			{
				if (this.BattleResultInfo == null)
				{
					this.BattleResultInfo = new RogueCommonDialogueOptionBattleResultInfo();
				}
				this.BattleResultInfo.MergeFrom(other.BattleResultInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A800 RID: 43008 RVA: 0x001C5F8C File Offset: 0x001C418C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A801 RID: 43009 RVA: 0x001C5F98 File Offset: 0x001C4198
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 98U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						GBIJFBKMOHL gbijfbkmohl = new GBIJFBKMOHL();
						if (this.optionResultInfoCase_ == RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase.OFOOEMCPEKH)
						{
							gbijfbkmohl.MergeFrom(this.OFOOEMCPEKH);
						}
						input.ReadMessage(gbijfbkmohl);
						this.OFOOEMCPEKH = gbijfbkmohl;
					}
				}
				else
				{
					RogueCommonDialogueOptionBattleResultInfo rogueCommonDialogueOptionBattleResultInfo = new RogueCommonDialogueOptionBattleResultInfo();
					if (this.optionResultInfoCase_ == RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase.BattleResultInfo)
					{
						rogueCommonDialogueOptionBattleResultInfo.MergeFrom(this.BattleResultInfo);
					}
					input.ReadMessage(rogueCommonDialogueOptionBattleResultInfo);
					this.BattleResultInfo = rogueCommonDialogueOptionBattleResultInfo;
				}
			}
		}

		// Token: 0x0400444A RID: 17482
		private static readonly MessageParser<RogueCommonDialogueOptionResultInfo> _parser = new MessageParser<RogueCommonDialogueOptionResultInfo>(() => new RogueCommonDialogueOptionResultInfo());

		// Token: 0x0400444B RID: 17483
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400444C RID: 17484
		public const int BattleResultInfoFieldNumber = 1;

		// Token: 0x0400444D RID: 17485
		public const int OFOOEMCPEKHFieldNumber = 12;

		// Token: 0x0400444E RID: 17486
		private object optionResultInfo_;

		// Token: 0x0400444F RID: 17487
		private RogueCommonDialogueOptionResultInfo.OptionResultInfoOneofCase optionResultInfoCase_;

		// Token: 0x02001C32 RID: 7218
		public enum OptionResultInfoOneofCase
		{
			// Token: 0x040067CE RID: 26574
			None,
			// Token: 0x040067CF RID: 26575
			BattleResultInfo,
			// Token: 0x040067D0 RID: 26576
			OFOOEMCPEKH = 12
		}
	}
}
